import request from '@/utils/request'

// 查询客服智能问题列表
export function listSlQuestions(query) {
  return request({
    url: '/projects/SlQuestions/list',
    method: 'get',
    params: query
  })
}

// 查询客服智能问题详细
export function getSlQuestions(id) {
  return request({
    url: '/projects/SlQuestions/' + id,
    method: 'get'
  })
}

// 新增客服智能问题
export function addSlQuestions(data) {
  return request({
    url: '/projects/SlQuestions',
    method: 'post',
    data: data
  })
}

// 修改客服智能问题
export function updateSlQuestions(data) {
  return request({
    url: '/projects/SlQuestions',
    method: 'put',
    data: data
  })
}

// 删除客服智能问题
export function delSlQuestions(id) {
  return request({
    url: '/projects/SlQuestions/' + id,
    method: 'delete'
  })
}
